libxl: add statup checks to libxl__wait_for_device_model
authorIan Campbell <ian.campbell@citrix.com>
Tue, 24 May 2011 14:57:24 +0000 (15:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 24 May 2011 14:57:24 +0000 (15:57 +0100)
commit3b6eaa3e341771827a9eca6c3eb8ee72593a3f56
treeee3e7e5f03c3c58dd51fea9af49b2be38c8ad2d8
parentdec144fc05e319d768736c35ab18f7057b411afe
libxl: add statup checks to libxl__wait_for_device_model

When the device model is starting up push checks for spawn failure down into
libxl__wait_for_device_model, allowing us to fail more quickly when the device
model fails to start (e.g. due to a missing library or an early setup error
etc).

In order to allow the select loop in libxl__wait_for_device_model to wake when
the child dies add pipe between the parent and the intermediate process which
the intermediate process can use to signal the parent.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_device.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_exec.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_pci.c